package com.lm.desensitization.example;

import com.alibaba.fastjson.JSON;
import com.lm.desensitization.entry.UserEntry;
import red.zyc.desensitization.Sensitive;


public class DesensitizationExample {
    public static void main(String[] args) {
        UserEntry user = new UserEntry();
        user.setEmail("admin@gmail.com");
        user.setPassword("89144552522");
        user.setName("admin");
        user.setPhone("13845988146");
        user.setIdCard("6222020400112568888");

        user = Sensitive.desensitize(user);

        System.out.println("脱敏后的用户信息: " + JSON.toJSONString(user));
    }
}
